#include<legacy.h>
int Vyi8XZjDoj(const char *PNOyOWxJpK) {
  for (; *PNOyOWxJpK; PNOyOWxJpK++)
    _putc(*PNOyOWxJpK);
  return 0;
}
enum JIGYRzzmas{
  J_Sl6Dag5p = 0, Lr13OEObb4 = 1,
  RsBhhiFFvE = 2, yAFGLz8ME3 = 3,
  TSiSLYknYn = 4, ExGIFMPbha = 5,
  K7z_BayAM3 = 6
};
static uint32_t qBLBhlntx_[40][40];
static uint32_t JCyb92PO2X[40][40];
static uint32_t WxSdxkcUJN;
struct eZelonvCFU{
  int32_t hck0ckSSZL,XD7kFstGd3;
}UQRn26Bmz5, kZ6hP_qvSg;
typedef struct eZelonvCFU eZelonvCFU;
uint32_t akI2wblQIp, oT4p6Ulx7J;
static int32_t W2yp9bnpy5;
static void erf1kA3ufC(){
  uint32_t IOjC2fkbCg = (rand() % WxSdxkcUJN) + 1;
  for(uint32_t SU7984_mkw = 0; SU7984_mkw < 40; SU7984_mkw ++)
    for(uint32_t GDOlvXNmhT = 0; GDOlvXNmhT < 40; GDOlvXNmhT ++){
      if(qBLBhlntx_[SU7984_mkw][GDOlvXNmhT] == J_Sl6Dag5p)
        IOjC2fkbCg --;
      if(IOjC2fkbCg == 0){
        qBLBhlntx_[SU7984_mkw][GDOlvXNmhT] = Lr13OEObb4;
        JCyb92PO2X[SU7984_mkw][GDOlvXNmhT] = 0;
        WxSdxkcUJN --;
        return;
      }
    }
}
static void XQvYgn4qpu(){
  for(uint32_t SU7984_mkw = 0; SU7984_mkw < 40; SU7984_mkw ++){
    for(uint32_t GDOlvXNmhT = 0; GDOlvXNmhT < 40; GDOlvXNmhT ++){
      if(SU7984_mkw == 0 || SU7984_mkw == 40 - 1
          || GDOlvXNmhT == 0 || GDOlvXNmhT == 40 - 1)
        qBLBhlntx_[SU7984_mkw][GDOlvXNmhT] = RsBhhiFFvE;
      else
        qBLBhlntx_[SU7984_mkw][GDOlvXNmhT] = J_Sl6Dag5p;
    }
  }
  UQRn26Bmz5.hck0ckSSZL = (40 + 1)/2;
  UQRn26Bmz5.XD7kFstGd3 = (40)/2;
  kZ6hP_qvSg.hck0ckSSZL = (40 - 1)/2;
  kZ6hP_qvSg.XD7kFstGd3 = (40)/2;
  qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] = TSiSLYknYn;
  qBLBhlntx_[kZ6hP_qvSg.XD7kFstGd3][kZ6hP_qvSg.hck0ckSSZL] = TSiSLYknYn;
  W2yp9bnpy5 = 0;
  WxSdxkcUJN = 0;
  for(uint32_t SU7984_mkw = 0; SU7984_mkw < 40; SU7984_mkw ++){
    for(uint32_t GDOlvXNmhT = 0; GDOlvXNmhT < 40; GDOlvXNmhT ++){
      if (qBLBhlntx_[SU7984_mkw][GDOlvXNmhT] == J_Sl6Dag5p)
        WxSdxkcUJN ++;
    }
  }
  erf1kA3ufC();
}
static uint32_t c0esYbnYow(){
  int32_t hck0ckSSZL[]={0,1,0,-1};
  int32_t XD7kFstGd3[]={-1,0,1,0};
  int32_t pu0XGjLhxR = hck0ckSSZL[qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] - yAFGLz8ME3];
  int32_t UaykZDyUUN = XD7kFstGd3[qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] - yAFGLz8ME3];
  int32_t ufBizpkLbx = hck0ckSSZL[qBLBhlntx_[kZ6hP_qvSg.XD7kFstGd3][kZ6hP_qvSg.hck0ckSSZL] - yAFGLz8ME3];
  int32_t QkSY7m7Gvu = XD7kFstGd3[qBLBhlntx_[kZ6hP_qvSg.XD7kFstGd3][kZ6hP_qvSg.hck0ckSSZL] - yAFGLz8ME3];
  if(qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3 + UaykZDyUUN][UQRn26Bmz5.hck0ckSSZL + pu0XGjLhxR] != J_Sl6Dag5p && qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3 + UaykZDyUUN][UQRn26Bmz5.hck0ckSSZL + pu0XGjLhxR] != Lr13OEObb4){
    Vyi8XZjDoj("Game over! \n");
    return 0;
  }
  else if(qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3 + UaykZDyUUN][UQRn26Bmz5.hck0ckSSZL + pu0XGjLhxR] == Lr13OEObb4){
    erf1kA3ufC();
    qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3 + UaykZDyUUN][UQRn26Bmz5.hck0ckSSZL + pu0XGjLhxR] = qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL];
    JCyb92PO2X[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] = 0;
    UQRn26Bmz5.hck0ckSSZL += pu0XGjLhxR;
    UQRn26Bmz5.XD7kFstGd3 += UaykZDyUUN;
    JCyb92PO2X[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] = 0;
    W2yp9bnpy5 ++;
  }
  else{
    qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3 + UaykZDyUUN][UQRn26Bmz5.hck0ckSSZL + pu0XGjLhxR] = qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL];
    JCyb92PO2X[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] = 0;
    UQRn26Bmz5.hck0ckSSZL += pu0XGjLhxR;
    UQRn26Bmz5.XD7kFstGd3 += UaykZDyUUN;
    JCyb92PO2X[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] = 0;
    qBLBhlntx_[kZ6hP_qvSg.XD7kFstGd3][kZ6hP_qvSg.hck0ckSSZL] = J_Sl6Dag5p;
    JCyb92PO2X[kZ6hP_qvSg.XD7kFstGd3][kZ6hP_qvSg.hck0ckSSZL] = 0;
    kZ6hP_qvSg.hck0ckSSZL += ufBizpkLbx;
    kZ6hP_qvSg.XD7kFstGd3 += QkSY7m7Gvu;
    JCyb92PO2X[kZ6hP_qvSg.XD7kFstGd3][kZ6hP_qvSg.hck0ckSSZL] = 0;
  }
  return 1;
}
uint32_t ukvKuleR4X[]={
  0xffffff, 0xff0000, 0x000000, 0x3f9fff,
  0x3f9fff, 0x3f9fff, 0x3f9fff, 0x1f6fff
};
static uint32_t h72Vdp9m1b[2048];
static char vZkqLfCIMW[128][8];
static void gZ5nzpxC8r(uint8_t OqmibpybCn, uint32_t hck0ckSSZL, uint32_t XD7kFstGd3, uint32_t PbckqMrTl2){
  for(uint32_t SU7984_mkw = 0; SU7984_mkw < 8 * PbckqMrTl2; SU7984_mkw ++){
    uint8_t XaRzohPKKN = 1;
    for(uint32_t GDOlvXNmhT = 0; GDOlvXNmhT < 8 * PbckqMrTl2; GDOlvXNmhT ++){
      if(vZkqLfCIMW[(uint32_t)OqmibpybCn][SU7984_mkw / PbckqMrTl2] & XaRzohPKKN)
        h72Vdp9m1b[SU7984_mkw * 8 * PbckqMrTl2 + GDOlvXNmhT] = 0xffffff;
      else
        h72Vdp9m1b[SU7984_mkw * 8 * PbckqMrTl2 + GDOlvXNmhT] = 0x000000;
      if(GDOlvXNmhT % PbckqMrTl2 == 0)
        XaRzohPKKN <<= 1;
    }
  }
  draw_rect(h72Vdp9m1b, hck0ckSSZL, XD7kFstGd3, 8 * PbckqMrTl2, 8 * PbckqMrTl2);
}
static char cZ5d65ts5U[128] = " SCORE";
static char h7WHgbkyVu[128];
const uint32_t Apv7PJcujL = 2;
static void raB0cxTuRP(char PNOyOWxJpK[], uint32_t hck0ckSSZL, uint32_t XD7kFstGd3, uint32_t PbckqMrTl2){
  uint32_t AlM0UT25fL = strlen(PNOyOWxJpK);
  for(uint32_t SU7984_mkw = 0; SU7984_mkw < AlM0UT25fL; SU7984_mkw ++)
    gZ5nzpxC8r(PNOyOWxJpK[SU7984_mkw], hck0ckSSZL + SU7984_mkw * 8 * PbckqMrTl2 , XD7kFstGd3, PbckqMrTl2);
}
static void Wv1JqEgtYr(){
  { uint32_t pVquJtRsOw = (akI2wblQIp / 40 < oT4p6Ulx7J / 40) ? akI2wblQIp / 40 : oT4p6Ulx7J / 40; for(uint32_t hck0ckSSZL = 0; hck0ckSSZL < akI2wblQIp / pVquJtRsOw; hck0ckSSZL ++){ for(uint32_t XD7kFstGd3 = 0; XD7kFstGd3 < oT4p6Ulx7J / pVquJtRsOw; XD7kFstGd3 ++){ for(uint32_t SU7984_mkw = 0; SU7984_mkw < pVquJtRsOw * pVquJtRsOw; SU7984_mkw++) h72Vdp9m1b[SU7984_mkw] = 0x000000; draw_rect(h72Vdp9m1b, hck0ckSSZL * pVquJtRsOw, XD7kFstGd3 * pVquJtRsOw, pVquJtRsOw, pVquJtRsOw); } } };
  raB0cxTuRP("WELCOME", akI2wblQIp / 2 - 96, oT4p6Ulx7J / 2 - 64, 4);
  raB0cxTuRP("SNAKE", akI2wblQIp / 2 - 64, oT4p6Ulx7J / 2 - 32, 4);
  draw_sync();
}
static void hRIJHsqzlx(){
  { uint32_t pVquJtRsOw = (akI2wblQIp / 40 < oT4p6Ulx7J / 40) ? akI2wblQIp / 40 : oT4p6Ulx7J / 40; for(uint32_t hck0ckSSZL = 0; hck0ckSSZL < akI2wblQIp / pVquJtRsOw; hck0ckSSZL ++){ for(uint32_t XD7kFstGd3 = 0; XD7kFstGd3 < oT4p6Ulx7J / pVquJtRsOw; XD7kFstGd3 ++){ for(uint32_t SU7984_mkw = 0; SU7984_mkw < pVquJtRsOw * pVquJtRsOw; SU7984_mkw++) h72Vdp9m1b[SU7984_mkw] = 0x000000; draw_rect(h72Vdp9m1b, hck0ckSSZL * pVquJtRsOw, XD7kFstGd3 * pVquJtRsOw, pVquJtRsOw, pVquJtRsOw); } } };
  raB0cxTuRP("GAME OVER", akI2wblQIp / 2 - 128, oT4p6Ulx7J / 2 - 32, 4);
  draw_sync();
}
static void mzR186wepk(){
  uint32_t pVquJtRsOw = (akI2wblQIp / 40 < oT4p6Ulx7J / 40)
    ? akI2wblQIp / 40 : oT4p6Ulx7J / 40;
    for(uint32_t hck0ckSSZL = 0; hck0ckSSZL < 40; hck0ckSSZL ++){
      for(uint32_t XD7kFstGd3 = 0; XD7kFstGd3 < 40; XD7kFstGd3 ++){
        if(JCyb92PO2X[XD7kFstGd3][hck0ckSSZL])
          continue;
        JCyb92PO2X[XD7kFstGd3][hck0ckSSZL] = 1;
        for(uint32_t SU7984_mkw = 0; SU7984_mkw < pVquJtRsOw * pVquJtRsOw; SU7984_mkw++)
          h72Vdp9m1b[SU7984_mkw] = ukvKuleR4X[qBLBhlntx_[XD7kFstGd3][hck0ckSSZL]];
        draw_rect(h72Vdp9m1b, hck0ckSSZL * pVquJtRsOw, XD7kFstGd3 * pVquJtRsOw, pVquJtRsOw, pVquJtRsOw);
      }
    }
  for(uint32_t SU7984_mkw = 0; SU7984_mkw < pVquJtRsOw * pVquJtRsOw; SU7984_mkw++)
    h72Vdp9m1b[SU7984_mkw] = ukvKuleR4X[7];
  draw_rect(h72Vdp9m1b, UQRn26Bmz5.hck0ckSSZL * pVquJtRsOw, UQRn26Bmz5.XD7kFstGd3 * pVquJtRsOw, pVquJtRsOw, pVquJtRsOw);
  sprintf(h7WHgbkyVu, " %05d", W2yp9bnpy5);
  raB0cxTuRP(cZ5d65ts5U, (40 +2)*pVquJtRsOw, (8*Apv7PJcujL)*2, Apv7PJcujL);
  raB0cxTuRP(h7WHgbkyVu, (40 +2)*pVquJtRsOw, (8*Apv7PJcujL)*3, Apv7PJcujL);
  draw_sync();
}
static uint32_t Ni4LED3jUH(){
  uint32_t MTpeqVwHlI = 1;
  int tl7Kc3Gx6U = read_key();
  int Tr4A1w4VGP = tl7Kc3Gx6U & ~0x8000;
  int wcwGfNsCkC = ((tl7Kc3Gx6U & 0x8000) != 0);
  if (Tr4A1w4VGP != _KEY_NONE && wcwGfNsCkC) {
    switch(Tr4A1w4VGP){
      case _KEY_W: if(qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] != ExGIFMPbha) {qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] = yAFGLz8ME3;} break;
      case _KEY_D: if(qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] != K7z_BayAM3) {qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] = TSiSLYknYn;} break;
      case _KEY_S: if(qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] != yAFGLz8ME3) {qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] = ExGIFMPbha;} break;
      case _KEY_A: if(qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] != TSiSLYknYn) {qBLBhlntx_[UQRn26Bmz5.XD7kFstGd3][UQRn26Bmz5.hck0ckSSZL] = K7z_BayAM3;} break;
      case _KEY_Q: return 0; break;
      default: break;
    }
  }
  MTpeqVwHlI = c0esYbnYow();
  mzR186wepk();
  return MTpeqVwHlI;
}
static char vZkqLfCIMW[128][8] = {
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x18, 0x3C, 0x3C, 0x18, 0x18, 0x00, 0x18, 0x00},
  { 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x36, 0x36, 0x7F, 0x36, 0x7F, 0x36, 0x36, 0x00},
  { 0x0C, 0x3E, 0x03, 0x1E, 0x30, 0x1F, 0x0C, 0x00},
  { 0x00, 0x63, 0x33, 0x18, 0x0C, 0x66, 0x63, 0x00},
  { 0x1C, 0x36, 0x1C, 0x6E, 0x3B, 0x33, 0x6E, 0x00},
  { 0x06, 0x06, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x18, 0x0C, 0x06, 0x06, 0x06, 0x0C, 0x18, 0x00},
  { 0x06, 0x0C, 0x18, 0x18, 0x18, 0x0C, 0x06, 0x00},
  { 0x00, 0x66, 0x3C, 0xFF, 0x3C, 0x66, 0x00, 0x00},
  { 0x00, 0x0C, 0x0C, 0x3F, 0x0C, 0x0C, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C, 0x06},
  { 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C, 0x00},
  { 0x60, 0x30, 0x18, 0x0C, 0x06, 0x03, 0x01, 0x00},
  { 0x3E, 0x63, 0x73, 0x7B, 0x6F, 0x67, 0x3E, 0x00},
  { 0x0C, 0x0E, 0x0C, 0x0C, 0x0C, 0x0C, 0x3F, 0x00},
  { 0x1E, 0x33, 0x30, 0x1C, 0x06, 0x33, 0x3F, 0x00},
  { 0x1E, 0x33, 0x30, 0x1C, 0x30, 0x33, 0x1E, 0x00},
  { 0x38, 0x3C, 0x36, 0x33, 0x7F, 0x30, 0x78, 0x00},
  { 0x3F, 0x03, 0x1F, 0x30, 0x30, 0x33, 0x1E, 0x00},
  { 0x1C, 0x06, 0x03, 0x1F, 0x33, 0x33, 0x1E, 0x00},
  { 0x3F, 0x33, 0x30, 0x18, 0x0C, 0x0C, 0x0C, 0x00},
  { 0x1E, 0x33, 0x33, 0x1E, 0x33, 0x33, 0x1E, 0x00},
  { 0x1E, 0x33, 0x33, 0x3E, 0x30, 0x18, 0x0E, 0x00},
  { 0x00, 0x0C, 0x0C, 0x00, 0x00, 0x0C, 0x0C, 0x00},
  { 0x00, 0x0C, 0x0C, 0x00, 0x00, 0x0C, 0x0C, 0x06},
  { 0x18, 0x0C, 0x06, 0x03, 0x06, 0x0C, 0x18, 0x00},
  { 0x00, 0x00, 0x3F, 0x00, 0x00, 0x3F, 0x00, 0x00},
  { 0x06, 0x0C, 0x18, 0x30, 0x18, 0x0C, 0x06, 0x00},
  { 0x1E, 0x33, 0x30, 0x18, 0x0C, 0x00, 0x0C, 0x00},
  { 0x3E, 0x63, 0x7B, 0x7B, 0x7B, 0x03, 0x1E, 0x00},
  { 0x0C, 0x1E, 0x33, 0x33, 0x3F, 0x33, 0x33, 0x00},
  { 0x3F, 0x66, 0x66, 0x3E, 0x66, 0x66, 0x3F, 0x00},
  { 0x3C, 0x66, 0x03, 0x03, 0x03, 0x66, 0x3C, 0x00},
  { 0x1F, 0x36, 0x66, 0x66, 0x66, 0x36, 0x1F, 0x00},
  { 0x7F, 0x46, 0x16, 0x1E, 0x16, 0x46, 0x7F, 0x00},
  { 0x7F, 0x46, 0x16, 0x1E, 0x16, 0x06, 0x0F, 0x00},
  { 0x3C, 0x66, 0x03, 0x03, 0x73, 0x66, 0x7C, 0x00},
  { 0x33, 0x33, 0x33, 0x3F, 0x33, 0x33, 0x33, 0x00},
  { 0x1E, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x1E, 0x00},
  { 0x78, 0x30, 0x30, 0x30, 0x33, 0x33, 0x1E, 0x00},
  { 0x67, 0x66, 0x36, 0x1E, 0x36, 0x66, 0x67, 0x00},
  { 0x0F, 0x06, 0x06, 0x06, 0x46, 0x66, 0x7F, 0x00},
  { 0x63, 0x77, 0x7F, 0x7F, 0x6B, 0x63, 0x63, 0x00},
  { 0x63, 0x67, 0x6F, 0x7B, 0x73, 0x63, 0x63, 0x00},
  { 0x1C, 0x36, 0x63, 0x63, 0x63, 0x36, 0x1C, 0x00},
  { 0x3F, 0x66, 0x66, 0x3E, 0x06, 0x06, 0x0F, 0x00},
  { 0x1E, 0x33, 0x33, 0x33, 0x3B, 0x1E, 0x38, 0x00},
  { 0x3F, 0x66, 0x66, 0x3E, 0x36, 0x66, 0x67, 0x00},
  { 0x1E, 0x33, 0x07, 0x0E, 0x38, 0x33, 0x1E, 0x00},
  { 0x3F, 0x2D, 0x0C, 0x0C, 0x0C, 0x0C, 0x1E, 0x00},
  { 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x3F, 0x00},
  { 0x33, 0x33, 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x00},
  { 0x63, 0x63, 0x63, 0x6B, 0x7F, 0x77, 0x63, 0x00},
  { 0x63, 0x63, 0x36, 0x1C, 0x1C, 0x36, 0x63, 0x00},
  { 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x0C, 0x1E, 0x00},
  { 0x7F, 0x63, 0x31, 0x18, 0x4C, 0x66, 0x7F, 0x00},
  { 0x1E, 0x06, 0x06, 0x06, 0x06, 0x06, 0x1E, 0x00},
  { 0x03, 0x06, 0x0C, 0x18, 0x30, 0x60, 0x40, 0x00},
  { 0x1E, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1E, 0x00},
  { 0x08, 0x1C, 0x36, 0x63, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF},
  { 0x0C, 0x0C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x1E, 0x30, 0x3E, 0x33, 0x6E, 0x00},
  { 0x07, 0x06, 0x06, 0x3E, 0x66, 0x66, 0x3B, 0x00},
  { 0x00, 0x00, 0x1E, 0x33, 0x03, 0x33, 0x1E, 0x00},
  { 0x38, 0x30, 0x30, 0x3e, 0x33, 0x33, 0x6E, 0x00},
  { 0x00, 0x00, 0x1E, 0x33, 0x3f, 0x03, 0x1E, 0x00},
  { 0x1C, 0x36, 0x06, 0x0f, 0x06, 0x06, 0x0F, 0x00},
  { 0x00, 0x00, 0x6E, 0x33, 0x33, 0x3E, 0x30, 0x1F},
  { 0x07, 0x06, 0x36, 0x6E, 0x66, 0x66, 0x67, 0x00},
  { 0x0C, 0x00, 0x0E, 0x0C, 0x0C, 0x0C, 0x1E, 0x00},
  { 0x30, 0x00, 0x30, 0x30, 0x30, 0x33, 0x33, 0x1E},
  { 0x07, 0x06, 0x66, 0x36, 0x1E, 0x36, 0x67, 0x00},
  { 0x0E, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x1E, 0x00},
  { 0x00, 0x00, 0x33, 0x7F, 0x7F, 0x6B, 0x63, 0x00},
  { 0x00, 0x00, 0x1F, 0x33, 0x33, 0x33, 0x33, 0x00},
  { 0x00, 0x00, 0x1E, 0x33, 0x33, 0x33, 0x1E, 0x00},
  { 0x00, 0x00, 0x3B, 0x66, 0x66, 0x3E, 0x06, 0x0F},
  { 0x00, 0x00, 0x6E, 0x33, 0x33, 0x3E, 0x30, 0x78},
  { 0x00, 0x00, 0x3B, 0x6E, 0x66, 0x06, 0x0F, 0x00},
  { 0x00, 0x00, 0x3E, 0x03, 0x1E, 0x30, 0x1F, 0x00},
  { 0x08, 0x0C, 0x3E, 0x0C, 0x0C, 0x2C, 0x18, 0x00},
  { 0x00, 0x00, 0x33, 0x33, 0x33, 0x33, 0x6E, 0x00},
  { 0x00, 0x00, 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x00},
  { 0x00, 0x00, 0x63, 0x6B, 0x7F, 0x7F, 0x36, 0x00},
  { 0x00, 0x00, 0x63, 0x36, 0x1C, 0x36, 0x63, 0x00},
  { 0x00, 0x00, 0x33, 0x33, 0x33, 0x3E, 0x30, 0x1F},
  { 0x00, 0x00, 0x3F, 0x19, 0x0C, 0x26, 0x3F, 0x00},
  { 0x38, 0x0C, 0x0C, 0x07, 0x0C, 0x0C, 0x38, 0x00},
  { 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x18, 0x00},
  { 0x07, 0x0C, 0x0C, 0x38, 0x0C, 0x0C, 0x07, 0x00},
  { 0x6E, 0x3B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
};
void ceO5NPYidU();
int main() {
  _ioe_init();
  ceO5NPYidU();
  printf("width: %d, height: %d\n", akI2wblQIp, oT4p6Ulx7J);
  int vK_Tb2f4LK, T2L2xQFOiP;
  XQvYgn4qpu();
  vK_Tb2f4LK = uptime();
  Wv1JqEgtYr();
  while(1){ T2L2xQFOiP = uptime(); if(T2L2xQFOiP - vK_Tb2f4LK >= 3000) break; };
  { uint32_t pVquJtRsOw = (akI2wblQIp / 40 < oT4p6Ulx7J / 40) ? akI2wblQIp / 40 : oT4p6Ulx7J / 40; for(uint32_t hck0ckSSZL = 0; hck0ckSSZL < akI2wblQIp / pVquJtRsOw; hck0ckSSZL ++){ for(uint32_t XD7kFstGd3 = 0; XD7kFstGd3 < oT4p6Ulx7J / pVquJtRsOw; XD7kFstGd3 ++){ for(uint32_t SU7984_mkw = 0; SU7984_mkw < pVquJtRsOw * pVquJtRsOw; SU7984_mkw++) h72Vdp9m1b[SU7984_mkw] = 0x000000; draw_rect(h72Vdp9m1b, hck0ckSSZL * pVquJtRsOw, XD7kFstGd3 * pVquJtRsOw, pVquJtRsOw, pVquJtRsOw); } } };
  while(1){
    T2L2xQFOiP = uptime();
    if(T2L2xQFOiP - vK_Tb2f4LK >= 200){
      vK_Tb2f4LK = T2L2xQFOiP;
      if(!Ni4LED3jUH())
        break;
    }
  }
  hRIJHsqzlx();
  while(1){ T2L2xQFOiP = uptime(); if(T2L2xQFOiP - vK_Tb2f4LK >= 3000) break; };
  return 0;
}
void ceO5NPYidU() {
  akI2wblQIp = screen_width();
  oT4p6Ulx7J = screen_height();
}
